package com.example.mapper;


import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {

    //根据用户名查询用户
    User getUserByUsername(String username);

    //根据id查询用户
    User getUserById(int id);

}
